let fix = require('../../src');

fix.startup('local', ['test1',  async function(db) {
    try {
        await db.beginTransaction();
        await db.execute(`update user set name = '张三2' where id = ?`, [1]);
        await db.execute(`update user set name = '李四2' where id = ?`, [2]);
        await db.commit();
        console.log('提交成功')
    } catch (e) {
        await db.rollback();
        console.log('已回滚')
    }

}]);
